﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Net;
using System.Net.Sockets;
using MyServer.Common;
using FrameWork.Setting;

namespace MyServer.Udp
{
    [SettingParentDefine]
    public class UdpDataSender:DataSenderBase
    {

        protected override void SendData(object Tag, byte[] Data)
        {
            UdpPkgInfo Info = (UdpPkgInfo)Tag;
            Info.Client.Send(Data, Data.Length, Info.BindPoint);
        }

        public UdpDataSender(UdpCenter Center) : base(Center) { }

    }
}
